from selenium.webdriver.common.by import By


class GoodsPayLoc:
    # 属性：元素定位
    # 搜索内容框
    selectcontent_loc=(By.XPATH,"//input[@id='keyword']")

    # 搜索按钮
    select_loc=(By.ID,"button")

    # 商品
    goods_loc=(By.XPATH,"//div[@class='goods-name']/a")

    #加入购物车按钮
    addgoodscart_loc=(By.XPATH,"//div[@class='add-cart']/a")

    #购物车结算菜单
    mycartmenu_loc=(By.XPATH,"//div[@class='head-user-menu']/dl[@class='my-cart']/dt")

    # 结算按钮
    allprice_loc=(By.XPATH,"//div[@class='checkout']/a")

    # 核对购物车商品
    nextsubmit_loc=(By.XPATH,"//div[@class='ncc-bottom']/a")

    # 支付密码框定位语句
    paypasswd_loc = (By.XPATH, "//input[@id='password']")

    #使用按钮
    userpaypasswd_loc=(By.XPATH,"//div[@id='pd_password']/a")

    #提交订单
    submit_loc = (By.XPATH, "//div[@class='ncc-bottom']/a")

    # 订单状态=用于断言
    paystate_loc=(By.XPATH,"//div[@class='ncc-finish-a']")